Permission Handling

description
No value
aliases
No value
tags
programming/rust
created
2023-03-08T15:05:42
updated
2023-07-15T21:33:03
title
Permission Handling

https://rust-book.cs.brown.edu/ch04-02-references-and-borrowing.html

borrowing은 얼핏보면 c/cpp의 포인터와 개념이 비슷하지만 사실은 권한위임과 권한 되돌려받기의 과정의 추상화인 것이다. borrowing이 없다면 우리는 매번 ownership을 넘겨주고 스코프에서의 사용이 끝나면 다시 ownership을 넘겨받아야만 했을 것이다.